package com.lyy.blog.service;

import com.lyy.blog.po.type;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface typeservice {
    type  savaType(type type);
    type getType(Long id);
    Page<type> listtype(Pageable pageable);
    type updateType(Long id,type type);
    void deleteType(Long id);
    type getTypebyname(String name);

    List<type> listtype();

    List<type> listtypetop(Integer size);
}
